import React from 'react';
import {ScrollView, Alert, Platform} from 'react-native';
import {connect} from 'react-redux';
import {I18n} from '../../reducers/intl';

class SettingScreen extends React.PureComponent {
  static navigationOptions = () => ({
    headerBackTitleStyle: Platform.OS === 'ios' && {
      height: 0,
      width: 0,
    },
    title: I18n.t('page.title.setting'),
  });

  onSignOut = () => {
    Alert.alert('ConfirmDialog Title', 'My ConfirmDialog Msg', [
      {
        text: 'Cancel',
        onPress: () => console.log('Cancel Pressed'),
        style: 'cancel',
      },
      {text: 'OK', onPress: () => console.log('OK Pressed')},
    ]);
  };

  render() {
    const {} = this.props;
    return (
      <ScrollView
        style={{flex: 1, backgroundColor: '#f5f5f9'}}
        automaticallyAdjustContentInsets={false}
        showsHorizontalScrollIndicator={false}
        showsVerticalScrollIndicator={false}
      />
    );
  }
}

const mapDispatchToProps = dispatch => ({});

export default connect(null, mapDispatchToProps)(SettingScreen);
